#ifndef __BC26_H
#define	__BC26_H
#include "main.h"

void BC26_Power(void);
uint8 BC26_ATI_Status(void);


uint8 BC26_Request_ICCID(void);
uint8 BC26_Request_IMEI(void);
UINT8 BC26_Active_Net(void);
uint8 Check_BC26_Net_Status(void);
void BC26_Check_Band(void);
uint8 BC26_Check_CESQ(void);
int BC26_Register_Net_Status(void);
void BC26_PDPACT(void);

void BC26_CFUN(void);
uint8 BC26_CSCON(void);
void BC26Initial(void);

#if 1
#define 	SeverIpAddress 		"157.255.51.150"
#define 	UDPServerPort 	    "10000"
#else
#define 	SeverIpAddress 		"114.116.200.206"
#define 	ServerPort 			"8893"
#define 	UDPServerPort 	    "30913"
#endif
#define		NBLocalPort			"9983"
#define		TCP_Connection		1
#define		UDP_Connection		0

#define		BC26_DisableSleepMode		0
#define		BC26_EnableSleepMode		1

#define		ReceiveUdpDataMaxLen		60
int8 		CreatSocket(uint8 type,uint8	socketid,UINT8*serveriP,uint8*serverport,uint8*localport);


uint8		CloseSocket(uint8	socketid);
void 		BC26_COPS(void);
UINT8		BC26_ConfigSleepMode(uint8		mode);
uint8 		BC26_JoinNet(void);
void 		BC26_PowerStart(void);
uint8 		BC26_QCSEARFCN(void);
uint8 		BC26_QENG(void);
uint8 		BC26_EnterSleep(void);

extern		int8 SocketId;

#endif 
